home *** CD-ROM | disk | FTP | other *** search
-
- to compile programs in the above-indicated sub- directories/trees,
- one must load libglut. inst-able images of GLUT v3.1 are located at
- toolbox/src/exampleCode/opengl/GLUT/inst/
-
- -------------------------------------
-
- OpenGL Programming 2 Course Example Programs
-
- This software will only compile/run on a >= 5.3 Irix system
- with gl_dev and x_dev products loaded. However, some of the
- examples use extensions that are only available on systems
- running IRIX 6.2 or later. Such examples have been properly
- #ifdef'ed so that they will compile, but they will not always
- do something intelligent.
-
- This subtree contains the example programs included in the OpenGL
- Programming 2 Student Manual available through SGI's
- customer education program.
-
- * accum:
- programs using the accumulation buffer to
- achieve scene anti-aliasing, depth-of-field,
- and motion blurring effects.
-
- * texture
- programs demonstrating basic texture mapping. Include using
- gluBuild2dMipmaps() to scale and load mipmaps for a single
- texture image and then applying this to a polygon; reading in a
- texture from an rgb file, setting the texture and the texture
- environment, then applying the texture to a rectangular polygon
- using explicit texture coordinates; and mipmaps.
-
- * clipping:
- demonstrates defining and using arbitrary clipping planes.
-
-
- * feedback
- demonstrates use of OpenGL feedback, where one can toggle
- in and out of feedback mode.
-
- * fog
- demonstrates using different types of fog including
- exponential, exponential squared, and linear as well
- as altering the density value.
-
- * nurbs
- demonstrates using nurbs curves and surfaces. It
- includes an example of using nurbs in display lists,
- setting the various nurbs properties, and trimming
- nurbs surfaces.
-
- * raster
- programs demonstrating the use of raster positioning and pixel
- operations, including creating a collage of images,
- use of the glCopyPixels() and glPixelZoom() routines,
- plus displaying an rgb image and file (and a subimage)
- in a window and writing pixel data from the window to an
- image file.
-
- * selection
- two programs: 1 demonstrates picking, and the other, selection.
-
- * stencils
- demonstrates a simple application of the stencil planes
- to mask an arbitrary screen area.
-
- * texture
- programs demonstrating more advanced texture mapping features,
- including reading a texture from an rgb file, setting up the
- texture and a sphere map texture environment and then applying
- them; as well as using automatically generated texture
- coordinates; a demonstration of storing textures in display
- lists where the objects are drawn using environment mapping;
- and a number of texture extensions.
-
- * image_extensions:
- programs demonstrating a number of extensions that are useful
- for image processing, including EXT_convolution, EXT_histogram,
- EXT_subtexture.
-
- * sgi_extensions:
- programs demonstrating a number of extensions that are only
- availabe on a subset of SGI platforms, including SGIS_multisample,
- and SGIS_sharpen_texture
-
-
- Two appendices are provided to help transition from IRIS GL to OpenGL.
-
- irisgl_vs_opengl
- Programs that demonstrate some of the differences between
- IRIS GL and OpenGL.
-
- porting
- An appendix the walks through some examples of porting IRIS GL
- programs to OpenGL. Includes information about writing mixed
- model programs, with and without using a widget set.
-
- The programs in the directories above can be invoked individually, or
- through the buttonfly command. In each directory, there are two
- menu files named 'menu_directoryname' and 'm_directoryname'. They
- are installed in the directory as '.menu' and '.m_directoryname', respectively.
- .menu specifies a button for the directory and .m_directoryname contains
- the information about how to run each program.
-
- To use the buttonfly program, run the RUN_DEMOS script
- in the opengl2 home directory.
-
- % ~opengl2/RUN_DEMOS
-
-
-